package org.ykh.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.ykh.iruleConfig.IruleConfig;

/**
 * @author ykh
 * @create 2022-01-03 22:11
 */
@SpringBootApplication
@EnableEurekaClient
//访问cloud-payment-service服务时采用IruleConfig类中的IRule
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE",configuration= IruleConfig.class)
public class OrderMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class, args);
    }
}
